{layout name="public/layout" /}
<!-- 内容主体区域 -->
<div class="site-block">
    <blockquote class="layui-elem-quote">
            <span class="layui-breadcrumb" lay-separator=">">
                <a href="">首页</a>
                <a><cite>设置配置</cite></a>
            </span>
    </blockquote>
    <fieldset class="layui-elem-field">
        <div class="layui-field-box">
            <div class="layui-btn-group">
                <a href="{:url('Config/cadd')}"><button class="layui-btn layui-btn-danger">新增字段</button></a>
            </div>
            <form class="layui-form layui-form-pane" action="">
                <style>
                    table thead tr th{text-align: center}
                </style>
            <table class="layui-table">
                <colgroup>
                    <col width="50">
                    <col width="150">
                    <col width="150">
                    <col width="100">
                    <col width="80">
                    <col width="100">
                    <col width="100">
                </colgroup>
                <thead>
                <tr>
                    <th>
                        <input type="checkbox" lay-skin="primary">
                    </th>
                    <th>中文名称</th>
                    <th>英文名称</th>
                    <th>排序</th>
                    <th>状态</th>
                    <th>属性</th>
                    <th>全局代码</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                {volist name="set_data" id="vo"}
                <tr>
                    <td>
                        {if condition="$vo['is_system'] eq 2"}
                        <input type="checkbox" name="id" lay-skin="primary" value="{$vo.id}">
                        {/if}
                    </td>
                    <td>{$vo.cname}</td>
                    <td>{$vo.ename}</td>
                    <td>{$vo.c_sort}</td>
                    <td>
                        {if condition="$vo['is_system'] eq 2"}
                        <input type="checkbox" {if condition="$vo['c_status'] eq 1"}checked=""{/if} lay-skin="switch" lay-text="正常|禁用">
                        {/if}
                    </td>
                    <td>{$vo.c_type}</td>
                    <td>
                         {:config('Conf.{$vo.ename}')} 
                    </td>
                    <td>
                        <div class="layui-btn-group">
                            <button class="layui-btn layui-btn-sm"><i class="layui-icon"></i></button>
                            <button class="layui-btn layui-btn-sm"><i class="layui-icon"></i></button>
                            <button class="layui-btn layui-btn-sm"><i class="layui-icon"></i></button>
                        </div>
                    </td>
                </tr>
                {/volist}

                </tbody>
                {$set_data->render()}

            </table>
                </form>
            {$set_data->render()}

        </div>
    </fieldset>
</div>

<script>


</script>